<?php
/*
 * questo helper mi permette di stampare i bottoni nelle varie view
 * 
 */
class Zend_View_Helper_ShowGeneralButton extends Zend_View_Helper_Abstract
{
    
    /**
     *
     * @param type $controller
     * @param type $action
     * @param type $id
     * @param type $route
     * @param type $nome
     * @return string 
     */
    public function showGeneralButton($controller, $action, $id, $route, $nome)
    {

        $button = '<a class="button doc-button" href="'.$this->view->url(array('controller'=>$controller,'action'=>$action, 'id'=>$id), $route, TRUE).'">'.$nome.'</a>';            
        return $button;

    }
}
?>